package com.jason.system.common;

import lombok.Data;

import java.io.Serializable;

/**
 * @author jie
 * @version 1.0
 * success come from self-discipline
 * @date 2021/3/24 19:42
 */

@Data
public class ResultEntity implements Serializable {

  private int code;
  private String message;
  private Object data;

  public ResultEntity(){
    code = 0;
    message = "unauthorized";
    data = null;
  }

  public ResultEntity(int code, String message, Object data){
    this.code = code;
    this.message = message;
    this.data = data;
  }

  public void setData(Object data) {
    this.data = data;
  }
}
